home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netware Super Library
/
Netware Super Library.iso
/
zipfiles
/
p2z
/
segue.exe
/
SS_DEMO.PRG
< prev
next >
Wrap
Text File
|
1991-05-20
|
3KB
|
93 lines
*.............................................................................
* Program Name: SS_DEMO.PRG Copyright: HRF Associates, Inc.
* Date Created: 06/10/91 Language: Clipper
* Time Created: 16:35:50 Author: Bob Fogle
*.............................................................................
* NOTE: The following code was written for demo purposes, not for efficiency.
*
mLASTCOLOR = SETCOLOR()
mLASTSCREEN = SAVESCREEN(00,00,24,79)
mLASTCURROW = ROW()
mLASTCURCOL = COL()
end_flag = .F.
SET wrap ON
SET message TO 23 center
DO WHILE .T.
DO MNUss
IF end_flag
@ mLASTCURROW-2,mLASTCURCOL
RESTSCREEN(00,00,24,79,mLASTSCREEN)
SETCOLOR(mLASTCOLOR)
RETURN
ENDIF
ENDDO
PROCEDURE MNUSS
LOCAL mCHOICE :=1
SETCOLOR(if(iscolor()=.F.,NOCOLOR,"BG+/B, B/W+,,,W+/B"))
CLEAR
@ 00,00 TO 24,79 DOUBLE
@ 00,25 SAY " SEGUE SUPPLEMENT, BINDERY "
xx=3
@ xx, 3 SAY "Select SEGUE SUPPLEMENT FUNCTION to demo:"
xx=xx+2
@ xx,10 PROMPT "Exit" MESSAGE "Return to Main Menu" //1
xx=xx+1
@ xx,10 PROMPT "USRAD_()" MESSAGE "SS Add User" //23
xx=xx+1
@ xx,10 PROMPT "USRDL_()" MESSAGE "SS Delete User" //24
xx=xx+1
@ xx,10 PROMPT "USRSLST_()" MESSAGE "SS List Users" //25
xx=xx+1
@ xx,10 PROMPT "USRGRPLST_()" MESSAGE "SS List User's Groups" //26
xx=xx+1
@ xx,10 PROMPT "USRINGRP_()" MESSAGE "SS Is User In Group" //27
xx=xx+1
@ xx,10 PROMPT "GRPAD_()" MESSAGE "SS Add Group" //28
xx=xx+1
@ xx,10 PROMPT "GRPDL_()" MESSAGE "SS Delete Group" //29
xx=xx+1
@ xx,10 PROMPT "GRPSLST_()" MESSAGE "SS List Groups" //30
xx=xx+1
@ xx,10 PROMPT "GRPUSRLST_()" MESSAGE "SS List Group's Users" //31
xx=xx+1
@ xx,10 PROMPT "GRPUSRAD_()" MESSAGE "SS Add User To Group" //32
xx=xx+1
@ xx,10 PROMPT "GRPUSRDL_()" MESSAGE "SS Delete User From Group" //33
xx=xx+1
@ xx,10 PROMPT "SUPLST_()" MESSAGE "SS List Users w/Supervisor Security" //34
xx=xx+1
MENU TO mCHOICE
//
DO CASE
CASE mCHOICE = 0 .or. mCHOICE = 1
end_flag=.T.
CASE mCHOICE = 2
DO USRAD
CASE mCHOICE = 3
DO USRDL
CASE mCHOICE = 4
DO USRSLST
CASE mCHOICE = 5
DO USRGRPLST
CASE mCHOICE = 6
DO USRINGRP
CASE mCHOICE = 7
DO GRPAD
CASE mCHOICE = 8
DO GRPDL
CASE mCHOICE = 9
DO GRPSLST
CASE mCHOICE = 10
DO GRPUSRLST
CASE mCHOICE = 11
DO GRPUSRAD
CASE mCHOICE = 12
DO GRPUSRDL
CASE mCHOICE = 13
DO SUPLST
ENDCASE
RETURN